package cn.edu.scnu.Service;

import cn.edu.scnu.entity.Address;
import cn.edu.scnu.entity.Return;

public interface AddressService {
    //根据用户账号查找收货地址
    public Return findByUsername(String username);
    //新增收货地址
    public Return addAddress(String username, Address address);
    //根据收货地址id更新地址
    public Return updateAddressById(Address address);
    //根据收货地址id设置默认地址
    public Return setDefaultById(String addressId);
    //根据收货地址id删除收货地址
    public Return deleteAddressById(String addressId);
    //查找默认地址
    public Return findDefaultAddress(String username);
}
